package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.SafeCenterModel;
import com.dibang.app.operation.model.impl.SafeCenterModelImpl;
import com.dibang.app.operation.presenter.abs.SafeCenterPresenter;
import com.dibang.app.operation.presenter.impl.SafeCenterPresenterImpl;
import com.dibang.app.operation.view.abs.SafeCenterView;
import com.dibang.app.operation.view.impl.SafeCenterViewImpl;

public class SafeCenterProImpl extends AbsProvider<SafeCenterView, SafeCenterPresenter, SafeCenterModel> {
    @Override
    public SafeCenterView getView() {
        return BeanFactory.getInstance(SafeCenterViewImpl.class);
    }

    @Override
    public SafeCenterPresenter getPresenter() {
        return BeanFactory.getInstance(SafeCenterPresenterImpl.class);
    }

    @Override
    public SafeCenterModel getModel() {
        return BeanFactory.getInstance(SafeCenterModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(SafeCenterViewImpl.class,SafeCenterPresenterImpl.class,SafeCenterModelImpl.class);
    }
}
